
package com.atguigu.spring5;

import java.io.IOException;
import java.net.URISyntaxException;

//import org.apache.logging.log4j.core.LoggerContext;
//import org.apache.logging.log4j.core.config.Configurator;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;

/**
 * 自定义log4j2配置文件路径
 * @author lz10272
 *
 */
public class UserLog {

//	private static final Logger log = LoggerFactory.getLogger(UserLog.class);

	public static void main(String[] args) throws URISyntaxException, IOException {

		//自定义log4j2配置文件路径
//		LoggerContext loggerContext = Configurator.initialize("Log4j", "classpath:txdemo/log4j2.xml");
//		loggerContext.initialize();
//		
//		log.info("hello log4j2");
//		log.warn("hello log4j2");
	}
}
